a=input("请输入一个字符串")
dict1 = {"zifu":0,"kongge":0,"shuzi":0,"qita":0}
for b in a:
    if b>='a' and b<='z' or b>='A' and b<='Z':
        dict1["zifu"]+=1
    elif b==" ":
        dict1["kongge"]+=1
    elif b == "0" or b =="1" or b =="2" or b =="3" or b =="4" or b =="5" or b =="6" or b =="7" or b =="8" or b =="9":
        dict1["shuzi"]+=1
    else:
        dict1["qita"]+=1
        
print(dict1)
#print(zifu)
#print(kongge)
#print(shuzi)
#print(qita)
